//
// 嗨~ o(*￣▽￣*)ブ
// Created by Mokou on 2020/7/17.
//

#import "ElecRelation.h"
#import "Util.h"
#import "GlobalData.h"


@implementation ElecRelation

- (instancetype)init:(NSDictionary *)_data {
    if (self = super.init) {
        self.id = @"";
        if ([Util notNull:_data k:@"id"])
            self.id = _data[@"id"];

        self.s_id = @"";
        if ([Util notNull:_data k:@"s_id"])
            self.s_id = _data[@"s_id"];

        self.m_id = @"";
        if ([Util notNull:_data k:@"m_id"])
            self.m_id = _data[@"m_id"];

        self.playerorder = 999999;
        if ([Util notNull:_data k:@"playerorder"])
            self.playerorder = [_data[@"playerorder"] intValue];
    }
    return self;
}

@end